import Layout from '@/views/common/index.vue'

export default [
  {
    path: '/questions',
    component: Layout,
    name: 'questions',
    redirect: '/deptConfig/list',
    meta: {
      title: '问卷调查'
    },
    children: [
      {
        path: 'deptConfig/list',
        name: 'deptConfigList',
        component: () => import('@/views/business/questions/deptconfig/DeptConfigList.vue'),
        meta: {
          title: '调查部门维护',
          path: 'deptConfig/list'
        }
      },
      {
        path: 'questionConfig/list',
        name: 'questionConfigList',
        component: () => import('@/views/business/questions/questionconfig/QuestionConfigList.vue'),
        meta: {
          title: '问卷配置维护'
        }
      },
      {
        path: 'questionConfig/form',
        name: 'questionConfigForm',
        component: () => import('@/views/business/questions/questionconfig/QuestionConfigForm.vue')
      },
      {
        path: 'statistic/index',
        name: 'statisticIndex',
        component: () => import('@/views/business/questions/statistic/index.vue'),
        meta: {
          title: '统计分析'
        }
      },
      {
        path: 'result/list',
        name: 'questionList',
        component: () => import('@/views/business/questionscommon/publish/QuestionList.vue'),
        meta: {
          title: '问卷结果'
        }
      }
    ]
  },
  {
    path: '/publish',
    name: 'publish',
    children: [
      {
        path: 'form',
        name: 'publishForm',
        component: () => import('@/views/business/questions/publish/PublishForm.vue')
      },
      {
        path: 'result',
        name: 'publishResult',
        component: () => import('@/views/business/questions/publish/PublishResult.vue')
      }
    ]
  }
]
